s=input().split(' ')
s.sort()
print("After sorted:")
for i in s:
    print(i)